package test;

/**
 * @Project : algorithm-learning-java
 * @Author : Ruoyu Wang
 * @User : Momenta
 * @DateTime : 2024/3/4 14:16
 */
public class Yield {
    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            for (int i = 0; i < 100; i++) {
                System.out.println("T" + i);
            }
        });

        t.start();
//        Thread.yield();
        for (int i = 0; i < 100; i++) {
            System.out.println("job._20240327meituan.Main" + i);
        }
    }
}
